<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<script>
  const name = "zhangsan";
  const age = 18;
  const height =1.88;

  const obj={
    name,
    age,
    height,
    run(){
      console.log("running")
    }
  }
  obj.run()
</script>

</body>
</html>